<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width"/>
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
<title>Hello APP</title>
<link rel="stylesheet" href="../css/index.css">
<link rel="stylesheet" href="../../script/swiper.min.css">
<style>
	html {width: 100%;height:100%;background: transparent;}
	body {
		/*background: rgba(0, 0, 0, 0.3); */
		width: 100%;height: 100%;
		background-color: #FFF;
	}

	.banner{width:100%;height:100%;}
	.banner img{width:100%;height:100%;}
	.swiper-slide{position:relative;}
	
	.btn { display:none; position: fixed; z-index:10; text-align:center; left: 0; right: 0; bottom:20px; }
	.btn img{ width:120px;}
</style>
</head>
<body>
	
    <div id="wrap">
    	
		<div class="swiper-container banner">
			<div class="swiper-wrapper" id="banner">
				<div class="swiper-slide"><img class="img" src="../image/startpage/01.png" /></div>
				<div class="swiper-slide"><img class="img" src="../image/startpage/02.png" /></div>
				<div class="swiper-slide"><img class="img" src="../image/startpage/03.png" /></div>
			</div>
		</div>
		<div class="btn" id="btn">
			<img src="../image/startpage/btn.png" tapmode onclick="login_click()"/>
		</div>
    </div>
</body>
<script type="text/javascript" src="../../script/zepto.min.js"></script>
<script type="text/javascript" src="../../script/myapp.js"></script>
<script type="text/javascript" src="../../script/swiper.min.js"></script>
<script type="text/javascript">
	var time = 3;
	var param = null;
	var hydata = null;
	var srand = 0;
    apiready = function(){
//		param = api.pageParam
//		if(!param || !param.images){
//			api.closeWin();
//		}
//		var html = '';
//		$.each(param.images,function(key,val){
//			if((key+1) >= param.images.length){
//				html += '<div class="swiper-slide" tapmode onclick="login_click()"><img class="img" src="'+val.image+'" /></div>';
//			}else{
//				html += '<div class="swiper-slide"><img class="img" src="'+val.image+'" /></div>';
//			}
//		});
//		$('#banner').html(html);


		var banner = new Swiper('.banner', {
	        pagination: '.swiper-pagination',
	        loop:false,
	        autoplay:false,
	        paginationClickable: false,
			resistanceRatio:0,
			 //滑动事件回调
	        onSlideChangeStart:function(swiper,even){
	        	if(swiper.activeIndex == swiper.slides.length-1){
	        		$('#btn').show();
	        	}else{
	        		$('#btn').hide();
	        	}
	        }
	    });

    };
    
    function login_click(){
		JF.setStorage('welcome', 1);
    	api.closeFrame();
    	
    }




</script>
</html>
